package com.example.docmanagement.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 忘记密码请求
 */
@Data
@Schema(description = "忘记密码请求参数")
public class ForgotPasswordRequest {

    @Schema(description = "用户注册邮箱", example = "user@example.com", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "请输入合法的邮箱地址")
    private String email;
}

